function bottles(number)
{console.log(number);
   let result="";
     while(number >= 2 && number < 100)
   {
   // if(number>1)
  // {
      console.log(number);
      result += number+" bottles of beer on the wall, "+number+" bottles of beer.\n"
      + "Take one down and pass it around, "+(number-1)+" bottle of beer on the wall.\n";
       number--;
  // }
   }
    
    if(number == 1)
    {
      result += "1 bottle of beer on the wall, 1 bottle of beer.\n"
      + "Take one down and pass it around, no more bottles of beer on the wall.\n" 
      number--;
    }
    if(number == 0) 
    {
        result+= "No more bottles of beer on the wall, no more bottles of beer.\n"
    + "Go to the store and buy some more, 99 bottles of beer on the wall."
    }
    
    return result;

}

module.exports=bottles;